<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
<jsp:directive.page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<jsp:directive.page import="java.util.ArrayList, java.util.Iterator, cult.ticketing.bean.*, cult.ticketing.processor.PurchaseProcessor" />
<jsp:output omit-xml-declaration="no" doctype-root-element="html" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
<jsp:include page="templates/include_header.html" />

<jsp:text><![CDATA[<html>
<head>
<title>Cult Ticketing System</title>

<link href="]]></jsp:text><jsp:expression>request.getContextPath()</jsp:expression><jsp:text><![CDATA[/css/style.css" rel="stylesheet" type="text/css" />
<link href="]]></jsp:text><jsp:expression>request.getContextPath()</jsp:expression><jsp:text><![CDATA[/css/movie.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="container">
]]></jsp:text>
<jsp:include page="templates/include_menu.jsp" />
<jsp:include page="templates/search.jsp" />

<jsp:text><![CDATA[<div id="main">
        <div id="content">
        <div id="head_image">
        	<div id="slogan"><strong>Cult Ticketing System -- Payment Result</strong><br />
       	    </div>
            <div id="under_slogan_text">
                <br /><br /><br /><br />

            </div>
          </div>

         <div id="left">]]></jsp:text>
            <jsp:include page="templates/login.jsp" />
            <jsp:include page="templates/calendar.jsp" />
         <jsp:text><![CDATA[</div>

         <div id="right">
            <h1>Payment Result</h1>
            <p>&nbsp;</p>]]></jsp:text>

            <jsp:scriptlet>
                Boolean isSuccessful = (Boolean)request.getAttribute("purchaseResult");
                if (isSuccessful){</jsp:scriptlet>
                    <jsp:text><![CDATA[Your purchase of <b>]]></jsp:text><jsp:expression>request.getAttribute("movieTitle")</jsp:expression><jsp:text><![CDATA[ </b> is successful. <br />
                    The movie show time is <b>]]></jsp:text><jsp:expression>request.getAttribute("showTime")</jsp:expression><jsp:text><![CDATA[  </b>.<br />
                    Please use your email address to confirm when entering the theater.]]></jsp:text>
                    <jsp:scriptlet> }
                 else { </jsp:scriptlet>
                    <jsp:text><![CDATA[Your purchase of <b>]]></jsp:text><jsp:expression>request.getAttribute("movieTitle")</jsp:expression><jsp:text><![CDATA[ </b> is failed. <br />
                    Please try again. ]]></jsp:text>
                  <jsp:scriptlet>}</jsp:scriptlet>
             <jsp:text><![CDATA[
                 <form action="]]></jsp:text><jsp:expression>request.getContextPath()</jsp:expression><jsp:text><![CDATA[/index.do">
                    <input type="submit" value="OK"/>
                 </form>
        </div>
	</div>
</div>
</div>]]></jsp:text>
<jsp:include page="templates/include_footer.html" />
<jsp:text><![CDATA[</body>
</html>
]]></jsp:text>
</jsp:root>
